<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>select获取自定义属性值</title>
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
    <script type="text/javascript">
        function  ddl_change() {
            //方法一：
            //alert($('#ddl').find("option:selected").attr('emoney'));
            //方法二：
            alert($('#ddl option:selected').attr('emoney'));
        }
    </script>
</head>
<body>
<h2>select获取自定义属性值，只用 jquery </h2>
<select id="ddl" onchange="ddl_change(this);">
    <option value="100" emoney="12" gmoney="12">日卡</option>
    <option value="102" emoney="58" gmoney="58">月卡</option>
    <option value="103" emoney="518" gmoney="518">年卡</option>
</select>
</body>
</html>